package com.xhwl.centiotdata.handler.weigh;

import com.alibaba.fastjson.JSONObject;
import com.xhwl.centiotdata.pojo.dto.weigh.WeighConfigDTO;
import com.xhwl.common.dto.cent.iotdata.mettler.WeighDTO;
import com.xhwl.common.exception.BusinessException;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author pengjunming
 * @description
 * @date 2022/10/8 10:56
 */
public abstract class WeighIntegrationHandler implements InitializingBean {

    public JSONObject weigh(WeighConfigDTO config, WeighDTO data) {
        throw new UnsupportedOperationException();
    }

    public void pullWeighDevice(WeighConfigDTO config){
        throw new UnsupportedOperationException("该项目id为"+config.getProjectId()+"，未配置集成配置");
    }
}
